import request from "@/utils/request"

//获取订单列表
export const getOrderListReq = params => {
    return request({
        method: 'get',
        url: '/order/list',
        params
    })
}

//获取订单详情
export const getOrderDetailReq = params => {
    return request({
        method: 'get',
        url: '/order/detail',
        params
    })
}

//修改订单
export const editOrderReq = data => {
    return request({
        method: 'post',
        url: '/order/edit',
        data
    })
}

//首页报表接口
export const getOrderTotal = params => {
    return request({
        method: 'get',
        url: '/order/totaldata',
        params
    })
}
//获取订单数据
export const getOrderTotalReq = params => {
    return request({
        method: 'get',
        url: '/order/ordertotal',
        params,
    })
}
